//
//  ZBMoBanEightButten.m
//  MoBan
//
//  Created by apple on 16/7/16.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZBMoBanEightButten.h"
@interface ZBMoBanEightButten()

@end
@implementation ZBMoBanEightButten
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self AddUI];
    }
    return self;
}
-(void)AddUI
{
    self.lable = [[UILabel alloc]init];
    self.lable.textAlignment = NSTextAlignmentCenter;
//    self.lable.text = @"测试";
    [self addSubview:self.lable];
    
    self.detailable = [[UILabel alloc]init];
    self.detailable.textAlignment = NSTextAlignmentCenter;
//    self.detailable.text = @"18";
    [self addSubview:self.detailable];

}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.lable.frame = CGRectMake(0, 0,self.width, self.height/2);
    self.detailable.frame = CGRectMake(0, self.lable.bottom, self.width, self.height/2);
}
-(void)setLable:(UILabel *)lable
{
    _lable =lable;
}
-(void)setDetailable:(UILabel *)detailable
{
    _detailable = detailable;
}
-(void)setLablefont:(UIFont *)lablefont
{
    _lable.font = lablefont;
}
-(void)setDetalilablefont:(UIFont *)detalilablefont
{
    _detalilablefont = detalilablefont;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
